{OVERALL_HEADER}
<SCRIPT LANGUAGE="JavaScript">
function formValidation(form)
{
	if(notEmpty(form.project_name,"{LANG_PROJNAME}"))
	{
		if(notEmpty(form.project_description,"{LANG_PROJDESC}"))
		{
			if(notEmpty(form.days,"{LANG_BIDTIME}"))
			{
				return true;
			}
		}
	}
	return false;
}
function notEmpty(elem,fname)
{
	var str = elem.value;
	if(str.length == 0)
	{
		alert("You must fill in the "+fname+" field.");
		return false;
	} 
	else 
	{
		return true;
	}
}
</script>
<table width="964px" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td width="15px">
		</td>
		<td valign="top" width="720px">
			<div id="project">
				<form onSubmit="return formValidation(this)" action="" method="post" enctype="multipart/form-data" name="form">
			      {LOOP: ERRORS}
					<span class="error">- {ERRORS.message}</span><br>
			      {/LOOP: ERRORS}
					<br />
					<table border="0" cellspacing="0" cellpadding="4" class="normal">
						<tr>
							<td><strong>{LANG_USERNAME}</strong></td>
						</tr>
						<tr>
							<td>{USERNAME}</td>
						</tr>
						<tr>
							<td><strong>{LANG_PROJNAME}(*)</strong></td>
						</tr>
						<tr>
							<td><input name="project_name" type="text" id="project_name" size="40" maxlength="200" value="{PROJECTTITLE}"></td>
						</tr>
						<tr>
							<td><strong>{LANG_PROJTYPE}</strong></td>
						</tr>
						<tr>
							<td>
								<table border="0" cellpadding="0" cellspacing="0">
								{LOOP: JOBTYPES}
								IF("{JOBTYPES.ctype}"=="0"){
									<tr>
										<td><input name="jobtype[{JOBTYPES.id}]" type="checkbox" value="{JOBTYPES.id}"></td>
										<td>{JOBTYPES.title}</td>
									</tr>
								{:IF}
								IF("{JOBTYPES.ctype}"=="2"){
									<tr>
										<td><input name="jobtype[{JOBTYPES.id}]" type="checkbox" value="{JOBTYPES.id}"></td>
										<td> {JOBTYPES.title}</td>
									</tr>
								{:IF}
								IF("{JOBTYPES.ctype}"=="1"){
									<tr>
										<td colspan="2"><strong>{JOBTYPES.title}</strong></td>
									</tr>
								{:IF}
								{/LOOP: JOBTYPES}
								</table>
							</td>
						</tr>
						<tr>
							<td><strong>{LANG_DATABASE}</strong></td>
						</tr>
						<tr>
							<td>
								<select name="dbtype" id="select3">
									{LOOP: DBS}
						            <option {DBS.selected} value={DBS.value}>{DBS.title}</option>
						            {/LOOP: DBS}			
								</select>
							</td>
						</tr>
						<tr>
							<td><strong>{LANG_OPSYS}</strong></td>
						</tr>
						<tr>
							<td>
								<select name="ostype" id="select4">
						            {LOOP: OSS}
						            <option {OSS.selected} value={OSS.value}>{OSS.title}</option>
						            {/LOOP: OSS}
						            
						        </select>
							</td>
						</tr>
				        {LOOP: CUSTOMFIELDS}
				        <tr>
							<td><strong>{CUSTOMFIELDS.title}</strong></td>
				        </tr>
						<tr>
							<td>
							IF("{CUSTOMFIELDS.type}"=="text"){
								<input name="custom[{CUSTOMFIELDS.id}]" type="text" id="custom[{CUSTOMFIELDS.id}]" size="30" maxlength="{CUSTOMFIELDS.maxlength}" value="{CUSTOMFIELDS.default}">
							{:IF}
							IF("{CUSTOMFIELDS.type}"=="select"){{CUSTOMFIELDS.selectbox}{:IF}
							</td>
						</tr>
						{/LOOP: CUSTOMFIELDS}
				        <tr>
				          <td><strong>{LANG_PROJDESC}(*)</strong></td>
				        </tr>
				        <tr>
							<td>
								<textarea name="project_description" cols="50" rows="9" id="textarea">{DESCRIPTION}</textarea>
							</td>
				        </tr>
				        <tr>
				          <td><strong>{LANG_ATTACHMENT}:</strong>
				            <input name="attachment" type="file" id="attachment2" size="40"> (Max. 500 KB)</td>
				        </tr>        
				        <tr>
				          <td><strong>{LANG_BUDGET}</strong></td>
				        </tr>
				        <tr>
				          <td>{LANG_MIN}: {CURRENCY_SIGN}
				              <select name="budget" id="budget" style="text-align:left;">
						            {LOOP: BUDGETS}
						            <option {BUDGETS.selected} value={BUDGETS.value}>{BUDGETS.title}</option>
						            {/LOOP: BUDGETS}			            
						        </select>
						      <!--  
				              <input name="budget_min" type="text" id="budget_min" size="8" value="{MINBUDGET}"></td>
				        </tr>
				        <tr>
				          <td>{LANG_MAX}: {CURRENCY_SIGN}
				              <input name="budget_max" type="text" id="budget_max" size="8" value="{MAXBUDGET}"></td>
				       		-->
				        </tr>
				        <tr>
				          <td>{LANG_WANTBID} <input name="days" type="text" id="days" size="5" maxlength="2" value="{BIDDINGTIME}"> {LANG_DAYS}</td>
				        </tr>
			            <tr>
							<td><input name="featured" {FEATURED} type="checkbox" id="featured2" value="1"><b> {LANG_WANTPAY} {CURRENCY_SIGN}{FEATURED_PRICE} {LANG_WANTFEAT}</b></td>
						</tr>
				        <tr>
				          <td><input type="submit" name="Submit" value="{LANG_SUBPROJECT}" class="button"></td>
				        </tr>
			      </table>
			    </form>    <br>
			</div>	
			<div style="clear:left;"></div>
		</td>
		<td align="right"  valign="top">
			<div class="mag_v_category">
	      		<div class="mag-main-v_category">
	      			<div class="title_mag-main-v_category">      		 
	      				PROJECT CATEGORIES
	      			</div> 
	      			<table cellpadding="0" cellspacing="0" border="0" width="100%">
	      				<tr>
	      					<td width="153px">
	      						<div class="row1_mag-main-v_category">
	      							<a href="{SITEURL}projects.php"><strong>All Projects</strong><img src="templates/{TPL_NAME}/images/mag_dot.gif" width="7" height="7" alt="" border="0" hspace="0" vspace="0"></a>
	      						</div>
	      						{LOOP: CATEGORIES}
		      						<div class="row1_mag-main-v_category">
		      							<a href="{SITEURL}projects.php?cat={CATEGORIES.id}"><strong>{CATEGORIES.name} <img src="templates/{TPL_NAME}/images/mag_dot.gif" width="7" height="7" alt="" border="0" hspace="0" vspace="0"></strong></a>
		      						</div>
	      						{/LOOP: CATEGORIES}      						
	      						<div class="row1_mag-main-v_category">
	      							 <img src="templates/{TPL_NAME}/images/mag_dot.gif" width="7" height="7" alt="" border="0" hspace="0" vspace="0">
	      						</div>
	      						<div class="row1_mag-main-v_category">
	      							 <img src="templates/{TPL_NAME}/images/mag_dot.gif" width="7" height="7" alt="" border="0" hspace="0" vspace="0">
	      						</div>
	      						<div class="row1_mag-main-v_category">
	      							 <img src="templates/{TPL_NAME}/images/mag_dot.gif" width="7" height="7" alt="" border="0" hspace="0" vspace="0">
	      						</div>
	      						<div class="row1_mag-main-v_category">
	      							 <img src="templates/{TPL_NAME}/images/mag_dot.gif" width="7" height="7" alt="" border="0" hspace="0" vspace="0">
	      						</div>
	      						<div class="row2_mag-main-v_category">
	      							<img src="templates/{TPL_NAME}/images/mag_dot.gif" width="7" height="7" alt="" border="0" hspace="0" vspace="0">
	      						</div>
	      					</td>
	      					<td>
	      						<img src="templates/{TPL_NAME}/images/mag_right.gif" width="37" height="211" alt="" border="0" hspace="0" vspace="0">
	      					</td>
	      				</tr>
	      			</table>
	      		</div>
	      		<script type="text/javascript">
<!--
 
//-->
	function onsubmit(object)
	{
		document.myform.submit();
	}
	function forcusobj(obj,str)
	{
		if(obj.value == str)
		{		
			obj.value="";
		}
	}
	function lostforcusobj(obj, str)
	{
		if(obj.value == "")
		{		
			obj.value=str;
		}
	}
</script>
      		<div class="mag-main-v_category" style="text-align: right;">
      			<div class="title_mag-main-v_category">      		 
      				SEARCH PROJECT
      			</div>
      			<div style="background-color: #fff; width: 100%">
      				<input type="text" style="width:180px;height:27px" value="Search Project" onfocus="return forcusobj(this,'Search Project');" onblur="return lostforcusobj(this,'Search Project')">
      				<a href="#"><input type="image" src="templates/{TPL_NAME}/images/home_search.gif"></a>
      			</div> 
      		</div>	
	      	</div>	
		</td>
	</tr>
</table>

{OVERALL_FOOTER}